package com.example.demo.config;

import com.example.demo.model.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PersonConfig {

    @Bean(name = "wangwu")
    public Person getPerson() {
        Person person = new Person();
        person.setId("234234");
        person.setName("czh");
        return person;
    }
}
